package com.itheima.controller.backend;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
public class LoginController {
    @RequestMapping("/login")
    public String login() {
        // 重定向到
        return "redirect:http://localhost:8080/backend/login.html";
    }


    // 示例：Controller 中正确的 forward 写法
//    @GetMapping("/main")
//    public String mainPage() {
//        return "forward:/backend/pages/main.html"; // 确保路径以斜杠开头
//    }

}
